package com.zonta.finance.serivce;

import com.zonta.finance.common.dto.ApiResponse;
import com.zonta.finance.domain.form.CreateMenuForm;
import com.zonta.finance.domain.form.DelMenuForm;
import com.zonta.finance.domain.form.UpdateMenuForm;
import com.zonta.finance.domain.po.SysMenu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zonta.finance.domain.vo.GetMenuByIdVo;
import com.zonta.finance.domain.vo.ListTreeMenuVo;
import com.zonta.finance.domain.vo.ListTreeSelectMenuVo;

import java.util.List;

/**
 * <p>
 * 系统菜单 服务类
 * </p>
 *
 * @author zonta
 * @since 2024-07-24
 */
public interface ISysMenuService extends IService<SysMenu> {

    /**
     * hq
     * @param title
     * @return
     */
    List<ListTreeMenuVo> listTreeMenu(String title);


    List<ListTreeSelectMenuVo> listTreeSelectMenu();
     int countByPid(int pid);

    Boolean create(CreateMenuForm form);

    GetMenuByIdVo getMenuById(Integer id);

    Boolean updateByForm(UpdateMenuForm form);

    List<ListTreeMenuVo> listTreeMenuByMenuIds();

    Boolean del(DelMenuForm form);

    List<SysMenu> getlist();
}
